package com.buddy.sds.scheduler.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.buddy.sds.scheduler.entity.SystemJob;
import org.quartz.SchedulerException;
import org.quartz.UnableToInterruptJobException;

public interface ISystemScheduleService extends IService<SystemJob> {

    boolean addJob(SystemJob job) throws SchedulerException;

    boolean stopJob(String jobId) throws SchedulerException;

    boolean resumeJob(String jobId) throws SchedulerException;

    boolean pauseJob(String jobId) throws SchedulerException;

    boolean deleteJob(String jobId) throws SchedulerException;

    void restoreStatusFromDB() throws SchedulerException;

}
